package com.konsung.ksdc.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2016/5/19 0019.
 */
public class CommentInfoBean implements Parcelable {
    private String evaluater; // 评价者

    private String evaluateTitle; // 评价标题

    private String evaluateLevel; //评价水平

    private String evaluateTime; //评价时间

    private String userPic; //评价者头像

    /**
     * @return 评价者
     */
    public String getEvaluater() {
        return evaluater;
    }

    /**
     * @param evaluater 评价者
     */
    public void setEvaluater(String evaluater) {
        this.evaluater = evaluater;
    }

    /**
     * @return 评价标题
     */
    public String getEvaluateTitle() {
        return evaluateTitle;
    }

    /**
     * @param evaluateTitle 评价标题
     */
    public void setEvaluateTitle(String evaluateTitle) {
        this.evaluateTitle = evaluateTitle;
    }

    /**
     * @return 评价等级
     */
    public String getEvaluateLevel() {
        return evaluateLevel;
    }

    /**
     * @param evaluateLevel 评价等级
     */
    public void setEvaluateLevel(String evaluateLevel) {
        this.evaluateLevel = evaluateLevel;
    }

    /**
     * @return 评价时间
     */
    public String getEvaluateTime() {
        return evaluateTime;
    }

    /**
     * @param evaluateTime 评价时间
     */
    public void setEvaluateTime(String evaluateTime) {
        this.evaluateTime = evaluateTime;
    }

    /**
     * 获取评论者头像
     * @return 头像url
     */
    public String getUserPic() {
        return userPic;
    }

    /**
     * 设置用户头像
     * @param userPic 头像url
     */
    public void setUserPic(String userPic) {
        this.userPic = userPic;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.evaluater);
        dest.writeString(this.evaluateTitle);
        dest.writeString(this.evaluateLevel);
        dest.writeString(this.evaluateTime);
        dest.writeString(this.userPic);
    }

    /**
     * 序列化构造
     * @param in 序列化
     */
    protected CommentInfoBean(Parcel in) {
        this.evaluater = in.readString();
        this.evaluateTitle = in.readString();
        this.evaluateLevel = in.readString();
        this.evaluateTime = in.readString();
        this.userPic = in.readString();
    }

    public static final Parcelable.Creator<CommentInfoBean> CREATOR = new Parcelable
            .Creator<CommentInfoBean>() {
        @Override
        public CommentInfoBean createFromParcel(Parcel source) {
            return new CommentInfoBean(source);
        }

        @Override
        public CommentInfoBean[] newArray(int size) {
            return new CommentInfoBean[size];
        }
    };
}
